package dyyx.domain;

public class WordFrequency implements Comparable<WordFrequency>{
	
	public String word;
	public long frequency;
	
	
	
	public int compareTo(WordFrequency o){
		if(frequency == o.frequency){
			return word.compareTo(o.word);
		}
		
		if(frequency > o.frequency){
			return -1;
		}	
		
		
		return 1;
		
	}
	
}
